package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 角色信息对象 sys_roles
 * 
 * @author ruoyi
 * @date 2021-10-12
 */
public class SysRoles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色ID */
    private Long rolesId;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String rolesName;

    /** 角色权限字符串 */
    @Excel(name = "角色权限字符串")
    private String rolesKey;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer rolesSort;

    /** 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限） */
    @Excel(name = "数据范围", readConverterExp = "1=：全部数据权限,2=：自定数据权限,3=：本部门数据权限,4=：本部门及以下数据权限")
    private String datasScope;

    /** 菜单树选择项是否关联显示 */
    @Excel(name = "菜单树选择项是否关联显示")
    private Integer menuCheckStrictly;

    /** 班级树选择项是否关联显示 */
    @Excel(name = "班级树选择项是否关联显示")
    private Integer classCheckStrictly;

    /** 角色状态（0正常 1停用） */
    @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setRolesId(Long rolesId) 
    {
        this.rolesId = rolesId;
    }

    public Long getRolesId() 
    {
        return rolesId;
    }
    public void setRolesName(String rolesName) 
    {
        this.rolesName = rolesName;
    }

    public String getRolesName() 
    {
        return rolesName;
    }
    public void setRolesKey(String rolesKey) 
    {
        this.rolesKey = rolesKey;
    }

    public String getRolesKey() 
    {
        return rolesKey;
    }
    public void setRolesSort(Integer rolesSort) 
    {
        this.rolesSort = rolesSort;
    }

    public Integer getRolesSort() 
    {
        return rolesSort;
    }
    public void setDatasScope(String datasScope) 
    {
        this.datasScope = datasScope;
    }

    public String getDatasScope() 
    {
        return datasScope;
    }
    public void setMenuCheckStrictly(Integer menuCheckStrictly) 
    {
        this.menuCheckStrictly = menuCheckStrictly;
    }

    public Integer getMenuCheckStrictly() 
    {
        return menuCheckStrictly;
    }
    public void setClassCheckStrictly(Integer classCheckStrictly) 
    {
        this.classCheckStrictly = classCheckStrictly;
    }

    public Integer getClassCheckStrictly() 
    {
        return classCheckStrictly;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rolesId", getRolesId())
            .append("rolesName", getRolesName())
            .append("rolesKey", getRolesKey())
            .append("rolesSort", getRolesSort())
            .append("datasScope", getDatasScope())
            .append("menuCheckStrictly", getMenuCheckStrictly())
            .append("classCheckStrictly", getClassCheckStrictly())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
